<%@ page contentType="text/html;charset=UTF-8"%>
 <%@page import="com.augurit.common.system.web.auth.form.LoginUserForm"%>
 <%LoginUserForm form=(LoginUserForm)request.getSession().getAttribute("SES_LOGIN_USER"); %>
<%@ include file="/common/taglibs.jsp"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<!-- dwr libs -->
<script type='text/javascript' src="${ctx}/dwr/engine.js"></script>
<script type='text/javascript' src="${ctx}/dwr/util.js"></script>
<script type='text/javascript' src="${ctx}/dwr/interface/FileUploadCntl.js"></script>
<script src="${ctx}/gzcgwsp/resources/js/YwUtil.js" type="text/javascript"></script>
<link href="${ctx}/gzcgwsp/resources/css/common-ui.css" rel="stylesheet" type="text/css" />
<script src="${ctx}/gzcgwsp/resources/js/YwEnterprise.js" type="text/javascript"></script>
<script src="${ctx}/gzcgwsp/qyzz/YwRqQyzzInfo/view/js/finalData.js" type="text/javascript"></script>

<script src="${ctx}/resources/js/jquery/jquery.js" type="text/javascript"></script>
<%@ include file="/wf/public/meta_wf.jsp"%>
<script type="text/javascript">
var saveAndSendFlag = undefined;
var _win;
var _editwin;

Ext.onReady(function(){
Ext.QuickTips.init();
    Ext.getBody().mask("页面加载中，请稍候......");
    var id_ = document.forms[0].id.value;
    var acceptNo_ = document.forms[0].acceptNo.value;
    if (id_ == '') {
      if (Ext.getCmp('WF_PRINT')) Ext.getCmp('WF_PRINT').setDisabled(true);
    }
    var centerTabPanel = Ext.getCmp('centerPanel');
  var ywPanel = new Ext.TabPanel({
        id: 'YwRqJyxkgdpanel',
        renderTo: 'tpanel',
        border: false,
        height: 800,
        enableTabScroll: true,
        defaults: {autoScroll: true},
        items: [
        ],
        listeners: {
            remove: function(tp, c) {
                c.hide();
            },
            afterlayout: function(c) {
                c.strip.setWidth(c.stripWrap.getWidth() - 2);
            },
            tabchange : function (tpanel, p) {
            
                         
            }
        }
    });
       // var title = ywPanel.getActiveTab().title;
       // alert(title);
       var panel01 = new Ext.Panel({title: '基本信息', tabCls: 'right-tab', contentEl: 'tpanel01', border: false});
      // var panel02=new Ext.Panel({title: '安全技术人员状况', tabCls: 'right-tab', contentEl: 'tpanel02', border: false});
        var panel03=new Ext.Panel({title: '燃气燃烧器具安装维修人员持证情况', tabCls: 'right-tab', contentEl: 'tpanel03', border: false});
       var panel04=new Ext.Panel({title: '企业主要设备与检测设备', tabCls: 'right-tab', contentEl: 'tpanel04', border: false});
       var panel05=new Ext.Panel({title: '其它证明材料', tabCls: 'right-tab', contentEl: 'tpanel05', border: false});
    
        ywPanel.add(panel01);
        var acceptNo=document.getElementById("acceptNo").value;
        var qyid=document.getElementById("qyid").value;
        var aqryurl="${ctx}/yw-rq-qyzz-js-ry!toPersonInfo.action?acceptNo="+acceptNo+"&qyid="+qyid;
        var aqwzryzsurl="${ctx}/yw-rq-qyzz-az-wxryzs!toPersonInfo.action?acceptNo="+acceptNo+"&qyid="+qyid;
        var sburl="${ctx}/yw-rq-qyzz-equipment!toEquipmentInfo.action?acceptNo="+acceptNo+"&qyid="+qyid;
       var zmclurl="${ctx}/yw-rq-qyzz-equipment!toZmclInfo.action?acceptNo="+acceptNo+"&qyid="+qyid;
       
          ywPanel.add({ 
		   id: "qyryPanel", 
		   title:"安全技术人员状况", 
		   html:'<iframe  src="'+aqryurl+'" id="qyryframes" name="qyryframes" frameBorder="0" scrolling="auto" top="0" width="100%" height="100%"></iframe>'  
		   
		   //autoLoad :{ url: taburl}    
		})
		
		  ywPanel.add({ 
		   id: "rqywxryzsPanel", 
		   title:"燃气燃烧器具安装维修人员持证情况", 
		   html:'<iframe  src="'+aqwzryzsurl+'" id="rqywxryzs" name="rqywxryzs" frameBorder="0" scrolling="auto" top="0" width="100%" height="100%"></iframe>'  
		   
		   //autoLoad :{ url: taburl}    
		})
		 ywPanel.add({ 
		   id: "sbPanel", 
		   title:"企业主要设备与检测设备", 
		   html:'<iframe  src="'+sburl+'" id="sbPanel" name="sbPanel" frameBorder="0" scrolling="auto" top="0" width="100%" height="100%"></iframe>'  
		   
		   //autoLoad :{ url: taburl}    
		})
		 ywPanel.add({ 
		   id: "zmclPanel", 
		   title:"其他证明材料", 
		   html:'<iframe  src="'+zmclurl+'" id="zmclPanel" name="zmclPanel" frameBorder="0" scrolling="auto" top="0" width="100%" height="100%"></iframe>'  
		   
		   //autoLoad :{ url: taburl}    
		})
        //ywPanel.add(panel02);
        //ywPanel.add(panel03);
        //ywPanel.add(panel04);
        //ywPanel.add(panel05);
        ywPanel.setActiveTab(panel01);
        ywPanel.doLayout(true);
        Ext.TaskMgr.start.defer(1500, this, [{run:function(){Ext.getBody().unmask();}, interval:1, repeat:1}]);
});

</script>
</head>

<body>
 
<form action=" " id="qyzzInfoForm" name="qyzzInfoForm" method="post">
  <!---------------- 隐藏域区域 开始 ----------------->
  <input class="text" type="hidden" id="id" name="id" value="${id}" />
   <input type="hidden" name="acceptNo" id="acceptNo" value="${acceptNo}" />
      <input type="hidden" name="qyid" id="qyid" value="${qyid}" />
   <input type="hidden" id="username"/>
    <input type="hidden" id="templateCode" name="templateCode" value="${templateCode}" />
  <!---------------- 隐藏域区域 结束 ----------------->
  
<div id="tpanel"></div>

<div style="display:none">
<div id="tpanel01" align="center">
<%@ include file="YwRqQyzzInfo-baseInfo.jsp" %>
</div>
<div id="tpanel02" align="center">
<%@ include file="YwRqQyzzInfo-aqzhryview.jsp" %>
</div>
<div id="tpanel03" align="center">
<%@ include file="YwRqQyzzInfo-rqjazryview.jsp" %>
</div>
<div id="tpanel04" align="center">
<%@ include file="YwRqQyzzInfo-zysbviews.jsp" %>
</div>
<div id="tpanel05" align="center">
<%@ include file="YwRqQyzzInfo-qtclview.jsp" %>
</div>
</div>
</form>
</body>
</html>
